package cn.da.shuai.cool.system.model.enums.user;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum GenderType implements IEnum<Integer> {

    UNKNOWN_TYPE(-1, "未知类型"),
    MALE(1, "男"),
    FEMALE(2, "女"),
    SECRET(3, "保密");

    @JsonValue
    @EnumValue
    private final Integer value;
    private final String desc;
}
